package com.huanyang.interact.controller;

import com.huanyang.interact.protocol.param.FavParam;
import com.huanyang.protocol.Result;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.web.bind.annotation.*;

@RestController
@RequestMapping("interact")
@Api(value = "交互系统", tags = "交互系统")
public class InteractController {

    @ApiOperation("赞")
    @PostMapping("like/articleId")
    public Result<Boolean> like(@PathVariable("articleId") Long id) {
        return Result.success(true);
    }

    @ApiOperation("踩")
    @PostMapping("dislike/articleId")
    public Result<Boolean> dislike(@PathVariable("articleId") Long id) {
        return Result.success(true);
    }

    @ApiOperation("收藏")
    @PostMapping("fav")
    public Result<Boolean> fav(@RequestBody FavParam favParam) {
        return Result.success(true);
    }
}
